home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VARCPIE.S < prev    next >
Text File  |  1993-03-16  |  1KB  |  53 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Arc and Pie.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _v_arc
  11. _v_arc:
  12.           moveq.l    #2,d1
  13.           bra.b     varcpie
  14.           globl     _v_pieslice
  15. _v_pieslice:
  16.           moveq.l    #3,d1
  17. varcpie:
  18. ;    .cargs    #8,handle.w,x.w,y.w,radius.w,begang.w,endang.w
  19.  
  20. handle      =         8
  21. x          =         10
  22. y          =         12
  23. radius      =         14
  24. begang      =         16
  25. endang      =         18
  26.  
  27.           link        a6,#0
  28.  
  29.           clr.w     -(sp)                ;* There are some unused words
  30.           move.w    radius(a6),-(sp)    ;* (which must be zeroed) in the
  31.           clr.l     -(sp)                ;* ptsin definition for arc & pie,
  32.           clr.l     -(sp)                ;* so build a temporary ptsin
  33.           move.l    x(a6),-(sp)         ;* array on the stack.
  34.           move.l    sp,a0                ;* Save pointer to ptsin.
  35.  
  36. ;          VContrl    #11,d1,#4,#2
  37.           move.w    handle(a6),-(sp)    ; contrl[6]
  38.           move.w    d1,-(sp)            ; contrl[5]
  39.           subq.l    #2,sp                ; contrl[4]
  40.           move.w    #2,-(sp)            ; contrl[3]
  41.           subq.l    #2,sp                ; contrl[2]
  42.           move.w    #4,-(sp)            ; contrl[1]
  43.           move.w    #11,-(sp)            ; contrl[0]
  44.  
  45.           subq.l    #8,sp                ;* -> ptsout, intout
  46.           move.l    a0,-(sp)            ;* -> ptsin
  47.           pea        begang(a6)            ;* -> intin
  48.           pea        16(sp)                ;* -> contrl
  49.  
  50.           jmp        vdicall
  51.  
  52.           end
  53.